package com.openbravo.pos.printer;

import com.openbravo.pos.sales.TicketsEditor;
import com.openbravo.pos.sales.event.TicketEvent;
import com.openbravo.pos.scripting.ScriptException;

public class DefaultTicketPrintManager extends AbstractTicketPrintManager {

	public DefaultTicketPrintManager(TicketParser ticketParser,
			TicketsEditor ticketEditor) throws ScriptException {
		super(ticketParser, ticketEditor);
	}

	@Override
	public void fireTicketFlushed(TicketEvent e) throws TicketPrinterException, ScriptException {
		ticketEditor.printTicket("Printer.Ticket", ticketEditor.getActiveTicket(), ticketEditor.getTicketExt());
	}
}
